import type { GotRoomStateMessageData } from "../types/MessageData";
import { useRoomState } from "@/hooks/useRoomState";

export const gotRoomStateHandler = (payload: GotRoomStateMessageData["payload"]) => {
	const roomState = useRoomState();
	roomState.room.value = payload;
};
